package com.yang.simple_rpc.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 配置参数
 * @author : morikawaaaa
 * @date : 2022
 */
@EnableConfigurationProperties(SimpleRpcProperty.class)
@ConfigurationProperties()
public class SimpleRpcProperty {
    //zookeeper地址
    private String registerAddress = "127.0.0.1:2181";

    private Integer serverPort = 21212;

    private String protocol = "simple";

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public Integer getServerPort() {
        return serverPort;
    }

    public void setServerPort(Integer serverPort) {
        this.serverPort = serverPort;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }
}
